efa policy extcommunity-list create

Create an extcommunity-list.

Syntax

efa policy extcommunity-list create [ --name string | --type { standard | extended } | --rule stringArray ]

Parameters

--name string
The name of the extended community list.
--type { standard | extended }
The type of extended community list. Valid options are standard, extended.
--rule stringArray
Rule in format seq[seq-num], action[permit/deny], rt[ASN:NN | IpAddress:NN, ASN and NN is 2 or 4 bytes], soo[ASN:NN|IpAddress:NN, ASN and NN is 2 or 4 bytes] OR seq[num], action[permit/deny], ext-value[regular expression].

Examples

This example creates an extcommunity-list of type standard.

efa policy extcommunity-list create --name excommlist-1 --type standard
--rule "seq[4],action[permit],soo[10.11.2.3:22]"
+------------------------------+---------+--------+----+--------------+-----------+ 
                
| Extended community list name | Seq num | Action | Rt |     Soo      | Ext Value | 
                
+------------------------------+---------+--------+----+--------------+-----------+ 
                
| excommlist-1                 | 4       | permit |    | 10.11.2.3:22 |           | 
                
+------------------------------+---------+--------+----+--------------+-----------+ 
                
Extended community list details 
                
+------------+--------+--------+-----------------+ 
                
| IP Address | Result | Reason | Rollback reason | 
                
+------------+--------+--------+-----------------+ 
                
Device Results 

This example adds an extcommunity-list to the specified devices.

efa policy extcommunity-list update --name excommlist-1 --type standard
--operation add-device --ip 10.20.246.29,10.20.246.30  
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
| Extended community list name | Seq num | Action |  Rt   |     Soo      | Ext Value | 
                
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
| excommlist-1                 | 4       | permit |       | 10.11.2.3:22 |           | 
                
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
| excommlist-1                 | 5       | deny   | 1:345 |              |           | 
                
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
| excommlist-1                 | 6       | permit | 1:45  | 10.11.2.3:22 |           | 
                
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
Extended community list details 
                
+--------------+---------+--------+-----------------+ 
                
|  IP Address  | Result  | Reason | Rollback reason | 
                
+--------------+---------+--------+-----------------+ 
                
| 10.20.246.29 | Success |        |                 | 
                
+--------------+---------+--------+-----------------+ 
                
| 10.20.246.30 | Success |        |                 | 
                
+--------------+---------+--------+-----------------+ 
                
Device Results